package com.isoftstone.springcloud.framework.controller;


import com.isoftstone.springcloud.framework.entity.TestDataVO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @ApiOperation(value = "测试接口", notes = "构建项目用的测试接口")
    @ApiImplicitParam(name= "id", value = "用户id",required = true,dataType = "String",paramType = "path")
    @RequestMapping(value = "user/{id}",method = RequestMethod.GET)
    public String getJsonTest(String id){

        return id;

    }

    @ApiImplicitParam(value = "测试的值")
    public String getDataTest( TestDataVO testDataVO){
        return null;

    }


}
